home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 26.zip
/
BS1 part 26
/
Cando v1.6 disk 2.adf
/
HelpFiles
/
Error Management
< prev
next >
Wrap
Text File
|
1992-01-31
|
2KB
|
98 lines
C- DoOnError |doonerror|
V- ErrorCode |errorcode|
V- ErrorLineNumber |errorlinenumber|
V- ErrorObjectName |errorobjectname|
V- ErrorObjectType |errorobjecttype|
V- Errors |errors|
V- ErrorScriptName |errorscriptname|
V- ErrorScriptType |errorscripttype|
V- ErrorSourceLine |errorsourceline|
V- ErrorText |errortext|
C- IfError |iferror|
[E]
|doonerror|
WT DoOnError {RoutineName} [{Arg1} [,up to ten arguments]]
PL Performs the specified Routine if an error
PL occurs in the script being performed. This
PL will supersede the error handling done by
PL CanDo.
ED
|errorcode|
WT {Integer}=ErrorCode
PL Returns the Error Number associated with an
PL error. See the supplement manual for the
PL meaning of each error code.
PL
PT SEE ALSO:
BS ErrorText
PT .
ED
|errorlinenumber|
WT {Integer}=ErrorLineNumber
PL The line number in the script which
PL caused an error.
ED
|errorobjectname|
WT {String}=ErrorObjectName
PL Returns the name of the object which had
PL the error.
ED
|errorobjecttype|
WT {String}=ErrorObjectType
PL Returns the type of object in which the
PL error occured.
ED
|errors|
WT {Logical}=Errors
PT Returns
BS True
PL when script is executing after
PL an error occured.
ED
|errorscriptname|
WT {String}=ErrorScriptName
PL Returns the label for the script which had
PL an error (ie. the name of the routine)
ED
|errorscripttype|
WT {String}=ErrorScriptType
PL Returns the script type where an error
PL occurred.
ED
|errorsourceline|
WT {String}=ErrorSourceLine
PL Returns text of the script on which the
PL error occurred. This only works when
PL running from the CanDo.Library not when
PL run from DeckBrowser.
ED
|errortext|
WT {String}=ErrorText
PL Returns the error message for the error
PL that occurred.
PL
PT SEE ALSO:
BS ErrorCode
PT .
ED
|iferror|
WT IfError
PL Used to detect an error following
PL a scripting command. If the previous
PL command caused an error, the IfError
PL commands will execute.
ED